package org.scc.model;
/**
 * 角色
 * 分为指定人员和所有人员
 * @author rzpeng
 *
 */
public class Role {
	
	public static final int SCOPE_ALL = 1;
	public static final int SCOPE_DESIGNEE = 2;
	
	private int id;
	private String name;
	private int scope;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getScope() {
		return scope;
	}
	public void setScope(int scope) {
		this.scope = scope;
	}
	
	public String getScopeText(){
		if(scope == 1){
			return "所有人员";
		} else {
			return "指定人员";
		}
	}
}
